import request from '@/utils/request'
import qs from 'qs'

/**
 * 工务進度追蹤
 */
export function queryList(code) {
  return request({
    url: '/api/admin/projectProgress/queryList?' + qs.stringify(code),
    method: 'get'
  })
}

// 根据系统别查询列表
export function queryBySystemType(query) {
  return request({
    url: '/api/admin/templateBlock/queryBySystemType',
    method: 'get',
    params: query
  })
}

// 查询表格可显示的栏位
export function queryDisplayBlock(query) {
  return request({
    url: '/api/admin/templateBlock/queryDisplayBlock',
    method: 'get',
    params: query
  })
}

// 保存表格可显示的栏位
export function saveDisplayBlock(data) {
  return request({
    url: '/api/admin/templateBlock/saveDisplayBlock',
    method: 'post',
    data
  })
}

export function queryProjectMeetingList(data) {
  return request({
    url: '/api/admin/projectMeeting/queryProjectMeetingList',
    method: 'post',
    data
  })
}


export function saveProjectMeeting(data) {
  return request({
    url: '/api/admin/projectMeeting/saveProjectMeeting',
    method: 'post',
    data
  })
}

export function queryProjectMeetingByProjectId(data) {
  return request({
    url: '/api/admin/projectMeeting/queryProjectMeetingByProjectId',
    method: 'post',
    data
  })
}

// 移除单个对象
export function projectProgressDelete(query) {
  return request({
    url: '/api/admin/projectProgress/delete',
    method: 'delete',
    data: query
  })
}